package ar.edu.unlp.info.cdiv.model;

import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;

public class Persona {

	private Long id;
	private String name;
	private String surname;
	private String biography;
	private User user;
	private Collection<Album> albums;
	
	public Persona(String name, String surname, String biography, User user) {
		super();
		this.name = name;
		this.surname = surname;
		this.biography = biography;
		this.user = user;
		this.albums = new HashSet<Album>();
	}

	public Persona() {
		super();
		this.user = new User();
		this.albums = new ArrayList<Album>();

	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSurname() {
		return surname;
	}

	public void setSurname(String surname) {
		this.surname = surname;
	}

	public String getBiography() {
		return biography;
	}

	public void setBiography(String biography) {
		this.biography = biography;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Collection<Album> getAlbums() {
		return albums;
	}

	public void setAlbums(Collection<Album> albums) {
		this.albums = albums;
	}

	public void add(Album album) {
		this.getAlbums().add(album);
	}

}
